package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.shopping.model.ShoppingGetCouponList;
/**
* 购物车优惠券列表
* @author wliu
* edit tse
*/
public class ShoppingGetCouponListResponse extends RudderResponse{

private List<ShoppingGetCouponList> getCouponList = new ArrayList<ShoppingGetCouponList>();


/**
* @return getCouponList
*/
public List<ShoppingGetCouponList> getGetCouponList() {
return this.getCouponList;
}

/**
* @return getCouponList
*/
public void setGetCouponList(List<ShoppingGetCouponList> getCouponList) {
this.getCouponList = getCouponList;
}
/**
methodName    GetCouponList
type          List<ShoppingGetCouponList>
name          getCouponList
defaultType   new ArrayList<ShoppingGetCouponList>()
*/

/**


    private static void filterFor(ShoppingGetCouponList shopping) {
        if (shopping.getCouponId() == null) {
            shopping.setCouponId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getEndTime() == null) {
            shopping.setEndTime("");
        }
        if (shopping.getIsChecked() == null) {
            shopping.setIsChecked("");
        }
    }

    public static void filter(ShoppingGetCouponListResponse shopping) {
        if (shopping.getGetCouponList() == null) {
            shopping.setGetCouponList(new ArrayList<ShoppingGetCouponList>());
        } else {
            for (ShoppingGetCouponList item : shopping.getGetCouponList()) {
                filterFor(item);
            }
        }
    }

*/

}
